<?php

// *** Documentation
/*______________________________________________________________________________

CEO Framework System Test

Last Update: Sep 2007
Author: Tom at klenwell@gmail.com

SUMMARY
  Extending framework test to complete script with controller and output 
  components

NOTES
  
		
______________________________________________________________________________*/

// *** Page Settings
  
  // start script timer
  $_PAGE['tx1'] = microtime();

  // page id (used as DOM id for page's wrapper div)
  $_PAGE['id'] = 'page_scriptframe';

  // meta data (used in Head section below)
  $_PAGE['title'] = 'CEO System Framework Test';
  $_PAGE['keywords'] = '';
	$_PAGE['description'] = 'what if we want to use project default?';

  
// *** Load Framework

  // call CEO project driver (use dirname or ../ to locate directory)
	$_PATH['project_driver'] = '../www/ceo.project_driver.inc.php';
	require_once($_PATH['project_driver']);
	
  // create framework object and load
  $Ceo = new CeoFramework($debug=0);
  $Ceo->Err->filter_trivial = 1;
  $Ceo->load_framework();
  $Ceo->print_d('framework load time: ' . $Ceo->tx_diff($_PAGE['tx1']));
  
  // load extensions
  
  // include additional files


// *** Run Framework

  // framework 
  $main_controller = $Ceo->project_root . 'controller' . $Ceo->DS . 'main.inc.php';
  $main_template = $Ceo->project_root . 'output' . $Ceo->DS . 'main.inc.php';
  $main_postscript = $Ceo->project_root . 'controller' . $Ceo->DS . 'postscript.inc.php';

  // load controller
  $Ceo->controller($main_controller);
  
  // get output
  $Ceo->output($main_template);
  
  // postscript
  $Ceo->postscript($main_postscript);
  
  // debug
  $Ceo->print_d('page load time: ' . $Ceo->tx_diff($_PAGE['tx1']));
  
// * That's All Folks!
?>
